import Vue from 'vue'
import VueRouter from 'vue-router'

const Two = () => import('views/two/Two.vue')
const Sudoku = () => import('views/sudoku/Sudoku.vue')
const Fantu = () => import('views/fantu/Fantu.vue')
const Qrcode = () => import('views/qrcode/Qrcode.vue')
const RubikX = () => import('views/rubikX/rubikX.vue')
const Rubik = () => import('views/rubik/rubik.vue')
const rubikCube2 = () => import('views/rubikCube2/rubikCube2.vue')
const oneLayerRubik = () => import('views/oneLayerRubik/oneLayerRubik.vue')
const RegularTwentyAspect = () => import('views/RegularTwentyAspect/RegularTwentyAspect.vue')
const testTT = () => import('views/testTT/testTT.vue')
const ai = () => import('views/ai/ai.vue')
// const ThreeTest =()=>import('views/threeTest/threeTest')
// const Two2048 =()=>import('views/tzfe/tzfe')

Vue.use(VueRouter)

const routes = [
  {
    path: '',
    component: Rubik
  },{
    path: '/two',
    // name: 'home',
    component: Two
  },
  {
    path:'/sudoku',
    component:Sudoku
  },
  {
    path:'/fantu',
    component:Fantu
  },
  {
    path:'/qrcode',
    component:Qrcode
  },
  // {
  //   path:'/three',
  //   component:Three
  // },
  // {
  //   path:'/rubik1of1',
  //   component:Rubik1of1
  // },
  {
    path:'/rubikX',
    component:RubikX
  },
  {
    path:'/rubik',
    component:Rubik
  },
  // {
  //   path:'/threeTest',
  //   component:ThreeTest
  // },
  // {
  //   path:'/tzfe',
  //   component:Two2048
  // },
  {
    path:'/rubikCube2',
    component:rubikCube2
  },
  {
    path:'/oneLayerRubik',
    component:oneLayerRubik
  },
  {
    path:'/RegularTwentyAspect',
    component:RegularTwentyAspect
  },
  {
    path:'/testTT',
    component:testTT
  },
  {
    path:'/ai',
    component:ai
  }
]

const router = new VueRouter({
  //mode: 'history',//打包之后有bug,404
 // base: process.env.BASE_URL,
  routes
})

export default router
